package com.ddone.finance.pojo.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;
import org.springframework.context.annotation.Primary;

import javax.validation.constraints.NotEmpty;

/**
 * @author ddone
 * @date 2024/4/19-16:50
 */
@Data
@ApiModel("绑定手机查询对象")
public class BindMobileVo {

    @NotEmpty
    @ApiModelProperty("绑定的手机号")
    private String mobile;

    @Length(min = 6,max = 6)
    @ApiModelProperty("6位短信验证码")
    private String code;

    @Range(min = 1,max = 2)
    @ApiModelProperty("用户类型,1：出借人 2：借款人")
    private Integer userType;
}
